function toast(title, icon = success, duration = 1000) {
  uni.showToast({
    title,
    icon,
    duration
  })
}
toast.error = function(title, duration = 3000) {
  uni.showToast({
    title,
    icon: "error",
    duration
  })
}

export default toast
